#include "highlightanimation.h"

HighlightAnimation::HighlightAnimation(BoobleWidget *booble) :
    m_wdgbooble(booble)
{
    setDirection(Backward);
}

int HighlightAnimation::duration() const
{
    return 500;
}

 void HighlightAnimation::updateCurrentTime(int currentTime)
 {
    qreal hlvalue = 100.0/(100+currentTime);
    m_wdgbooble->setHighLight(hlvalue);
    m_wdgbooble->repaint();
 }

